
/*This is a pointer function. In this fun. I am returning the address of K
and fetching the value of K. We cannot find the value of K without using of
key word static. The property of static is it does not change once
initialised */


#include<stdio.h>
#include<conio.h>
int *fun();
void main()
{
	int *j;

 //	int *fun();

	j = fun();

	clrscr();

	printf("\n\t%d", *j);

	getch();
}
int *fun()
{
	static int k = 35;

	//returning address of K
	return(&k);
}